jQuery(document).ready(function() {
  // Stuff to do as soon as the DOM is ready;
    var loginForm = $("#jLogin");
    loginForm.validate({
      rules:{
        jEmail:{
          required: true,
          email:true
        },
        jPass:{
          required:true
        }
      },messages:{
        jEmail: {
          required: "<em>W</em> Please enter a valid email address",
          minlength: "<em>W</em> Please enter a valid email address",
        },
        jPass: "<em>W</em> Enter your password",
      },submitHandler:function(){
        login.html("vominhman");
        login.parent().find(".login-option").hide();
      }
    })

  

  $("#jSubc").validate({
    rules:{
      jCity:{
        required:true,
      },
      jEmail:{
        required:true,
        email:true
      }
    },messages:{
      jCity:"",
      jEmail:{
          required: "",
          minlength: "",
      }
    },submitHandler:function(){

    }
  })

});
